package com.miya.demo.handler.process;

import com.miya.demo.common.enums.ProcessNameEnum;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author CaiXiaowei
 * @description
 * @date 2024/6/27 13:38
 */
@Component
public class DemoProcessEngine extends AbstractProcessEngineImpl{

    public static final List<ProcessNameEnum> processorList = new ArrayList<>();

    static {
        processorList.add(ProcessNameEnum.USER_INFO_QUERY);
        processorList.add(ProcessNameEnum.PROMOTION_COMPUTE);
        processorList.add(ProcessNameEnum.MONEY_PROCESS);
    }
    @Override
    protected List<ProcessNameEnum> getProcessors() {
        return processorList;
    }
}
